package com.xlh.dto.course;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 权限
 * <p>
 * Created by lx on 2019/4/19.
 */
@Data
public class AuthorityDTO {

    @ApiModelProperty(value = "章节id")
    private Long id;

    @ApiModelProperty(value = "章节名称")
    private String name;

    @ApiModelProperty(value = "资源显示隐藏 true：显示 false：隐藏")
    private Boolean showed = true;

    @ApiModelProperty(value = "资源下载权限 true：允许下载 false：不允许下载")
    private Boolean downloaded = true;

    public Boolean getShowed() {
        return showed == null ? true : showed;
    }

    public Boolean getDownloaded() {
        return downloaded == null ? true : downloaded;
    }
}
